/*******************************************************************************
Paper: Does the Production Approach to Markup Estimation Match a Stylized Fact?
Description: Imports GDP deflator data from Excel and saves a processed version
Author: Tove Forsbacka
Last Updated: 15 February 2026
*******************************************************************************/

* Setup and environment control 
clear
set more off
capture log close 

* Define path and load the data
*cd "PROJECT_PATH"
import excel "gdp_deflator", sheet("Annual") firstrow

gen year =year(observation_date)
drop observation_date
drop if year <1998
drop if year == 2020

rename SWEGDPDEFQISMEI gdpdeflator

* Saving the data
save "gdp_deflator.dta", replace
